<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">项目名称</td><td id="enginname" class="colorlan tv"></td><td class="tt">日期</td><td id="dt" class="tv"></td></tr>
                <tr><td class="tt">天气情况</td><td id="tian" class="tv"></td><td class="tt">气温</td><td id="wen" class="tv"></td></tr>
                <tr><td class="tt">风力</td><td id="feng" class="tv"></td><td class="tt">备注</td><td id="bei" class="tv"></td></tr>
                <tr><td class="tt">生产情况</td><td id="renchu" colspan="3" class="tv"></td></tr>
                <tr><td class="tt"></td><td id="jishi" colspan="3" class="tv"></td></tr>
                <tr><td class="tt">施工内容</td><td id="shiqing" colspan="3" class="tv"></td></tr>
                <tr><td class="tt"></td><td id="shinei" colspan="3" class="tv"></td></tr>
                <tr><td class="tt"></td><td id="shiyao" colspan="3" class="tv"></td></tr>
                <tr><td class="tt"></td><td id="shizhi" colspan="3" class="tv"></td></tr>
                <tr><td class="tt"></td><td id="tuiqing" colspan="3" class="tv"></td></tr>
                <tr><td class="tt">检查情况</td><td id="zhikuang" colspan="3" class="tv"></td></tr>
                <tr><td class="tt"></td><td id="ancha" colspan="3" class="tv"></td></tr>
                <tr><td class="tt">其他内容</td><td id="shezhi" colspan="3" class="tv"></td></tr>
                <tr><td class="tt"></td><td id="tingqing" colspan="3" class="tv"></td></tr>
                <tr><td class="tt"></td><td id="xingcha" colspan="3" class="tv"></td></tr>
                <tr><td class="tt">项目负责人</td><td id="xianger" class="tv"></td><td class="tt">技术负责人</td><td id="jier" class="tv"></td></tr>
                <tr><td class="tt">填报人</td><td id="tianer" colspan="3" class="tv"></td></tr>

                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_engin_diary_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var engininfo = res.data.engininfo;

                $("#enginname").text(engininfo.name).click(function () {
                    openPage('../engin/show.php?id='+engininfo.id);
                });

                $("#dt").text(data.dt);
                $("#tian").text(data.tian);
                $("#wen").text(data.wen);
                $("#feng").text(data.feng);
                $("#bei").text(data.bei);
                $("#renchu").text(data.renchu);
                $("#jishi").text(data.jishi);
                $("#shiqing").text(data.shiqing);
                $("#shinei").text(data.shinei);
                $("#shiyao").text(data.shiyao);
                $("#shizhi").text(data.shizhi);
                $("#tuiqing").text(data.tuiqing);
                $("#zhikuang").text(data.zhikuang);
                $("#ancha").text(data.ancha);
                $("#shezhi").text(data.shezhi);
                $("#tingqing").text(data.tingqing);
                $("#xingcha").text(data.xingcha);
                $("#xianger").text(data.xianger);
                $("#jier").text(data.jier);
                $("#tianer").text(data.tianer);


                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('engin_diary', param_id);
    });



</script>
</body>
</html>




